﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TraumaCenterSystem.Model
{
    public class CaseHistoryViewModel
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string PatientName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string PatientSex { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public string PatientAge { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string PatientPhone { get; set; }
        /// <summary>
        /// 就诊ID
        /// </summary>
        public string PatientId { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string PatientIdNum { get; set; }
        /// <summary>
        /// 联系地址
        /// </summary>
        public string PatientAddr { get; set; }
        /// <summary>
        /// 发病时间
        /// </summary>
        public DateTime? EmsDiseaseTime { get; set; }
        /// <summary>
        /// 来院方式
        /// </summary>
        public string PatientArriveClass { get; set; }
        /// <summary>
        /// 车辆到达医院大门时间
        /// </summary>
        public DateTime? EmsArriveDoorTime { get; set; }
        /// <summary>
        /// 院内接诊时间
        /// </summary>
        public DateTime? HMedicalTime { get; set; }
        /// <summary>
        /// 是否绕行
        /// </summary>
        public string IsRound { get; set; }
        /// <summary>
        /// 直达科室
        /// </summary>
        public string ThroughToDep { get; set; }
        /// <summary>
        /// 到达时间
        /// </summary>
        public DateTime? ThroughToTime { get; set; }
        /// <summary>
        /// 首次医疗接触
        /// </summary>
        public string FirstPlace { get; set; }
        /// <summary>
        /// 首次医疗接触人员
        /// </summary>
        public string FirstDocName { get; set; }
        /// <summary>
        /// 院内首份心电图时间
        /// </summary>
        public DateTime? FirstHEcgTime { get; set; }
        /// <summary>
        /// 首份心电图确诊时间
        /// </summary>
        public DateTime? EcgConfirmTime { get; set; }
        /// <summary>
        /// 是否远程传输
        /// </summary>
        public string IsEcgTransmission { get; set; }
        /// <summary>
        /// 传输方式
        /// </summary>
        public string TransmissionClass { get; set; }
        /// <summary>
        /// 传输时间
        /// </summary>
        public DateTime? TransmissionTime { get; set; }
        /// <summary>
        /// 心内科会诊医生
        /// </summary>
        public string CardiologistName { get; set; }
        /// <summary>
        /// 心内科医生会诊时间
        /// </summary>
        public DateTime? ConsultatTime { get; set; }
        /// <summary>
        /// 启用导管室时间
        /// </summary>
        public DateTime? StartCatheterTime { get; set; }
        /// <summary>
        ///是否溶栓
        /// </summary>
        public int IsThrombolysis { get; set; }
        /// <summary>
        /// 溶栓地点
        /// </summary>
        public string ThrombolysisAddr { get; set; }
        /// <summary>
        /// 溶栓时间
        /// </summary>
        public DateTime? ThrombolysisTime { get; set; }
        /// <summary>
        /// 溶栓药物
        /// </summary>
        public string ThrombolysisMedicine { get; set; }
        /// <summary>
        /// 溶栓剂量
        /// </summary>
        public string ThrombolysisDose { get; set; }
        /// <summary>
        /// 意识
        /// </summary>
        public string PatientConsciousness { get; set; }
        /// <summary>
        /// 呼吸
        /// </summary>
        public int PatientBreathe{ get; set; }
        /// <summary>
        /// 脉搏
        /// </summary>
        public int PatientPulse { get; set; }
        /// <summary>
        /// 心率
        /// </summary>
        public int PatientHeart{ get; set; }
        /// <summary>
        /// 血压l
        /// </summary>
        public int PatientBloodL { get; set; }
        /// <summary>
        /// 血压h
        /// </summary>
        public int PatientBloodH { get; set; }
        /// <summary>
        /// 肌钙蛋白抽血时间
        /// </summary>
        public DateTime? DrawBloodTime { get; set; }
        /// <summary>
        /// 肌钙蛋白报告时间
        /// </summary>
        public DateTime? ReportTime { get; set; }
        /// <summary>
        /// Ctnl值
        /// </summary>
        public string CtnlValue { get; set; }
        /// <summary>
        /// Ctnl单位
        /// </summary>
        public string CtnlUnit { get; set; }
        /// <summary>
        /// Ctnl状态（阴性0阳性1）
        /// </summary>
        public int CtnlStatus { get; set; }
        /// <summary>
        /// Ctnt值
        /// </summary>
        public string CtntValue { get; set; }
        /// <summary>
        /// Ctnt单位
        /// </summary>
        public string CtntUnit { get; set; }
        /// <summary>
        /// Ctnt状态（阴性0阳性1）
        /// </summary>
        public int CtntStatus { get; set; }
        /// <summary>
        /// 血清肌酐值
        /// </summary>
        public string CrValue { get; set; }
        /// <summary>
        /// 血清肌酐单位
        /// </summary>
        public string CrUnit { get; set; }
        /// <summary>
        /// 初步诊断
        /// </summary>
        public string PreDiagnosis { get; set; }
        /// <summary>
        /// 诊疗路径ID
        /// </summary>
        public int DiagnosticPathId { get; set; }

        /// <summary>
        /// 转归类型（0出院1转送其他医院2转送其他科室3死亡）
        /// </summary>
        public int OutComeType { get; set; }
        /// <summary>
        /// 出院时间
        /// </summary>
        public DateTime? LeaveHospitalTime { get; set; }
        /// <summary>
        /// 治疗结果（0治愈 1好转2脑死亡离院3其他原因离院）
        /// </summary>
        public int TreatmentResultType { get; set; }
        /// <summary>
        /// 出院带药（1DAPT 2ACEI/ARB 3他汀 4β阻滞剂）
        /// </summary>
        public int TakeMedicineType { get; set; }
        /// <summary>
        /// 离开本院大门时间
        /// </summary>
        public DateTime? LeaveDoorTime { get; set; }
        /// <summary>
        /// 转往医院
        /// </summary>
        public string TransferHospitalName { get; set; }
        /// <summary>
        /// 转到时间
        /// </summary>
        public DateTime? TransferArriveTime { get; set; }
        /// <summary>
        /// 	原因
        /// </summary>
        public string TransferReason { get; set; }
        /// <summary>
        /// 运转PCI
        /// </summary>
        public int IsPCI { get; set; }
        /// <summary>
        /// 直达导管室
        /// </summary>
        public int IsDirectCatheter { get; set; }
        /// <summary>
        /// 转科时间
        /// </summary>
        public DateTime? TransferDepTime { get; set; }
        /// <summary>
        /// 接诊时间
        /// </summary>
        public DateTime? ReceptionTime { get; set; }
        /// <summary>
        /// 转科原因描述
        /// </summary>
        public string TransferDepReason { get; set; }
        /// <summary>
        /// 死亡时间
        /// </summary>
        public DateTime? DieTime { get; set; }
        /// <summary>
        /// 是否心源性
        /// </summary>
        public int IsCardiogenic { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string DieDescribe { get; set; }

        public string UpdateUserId { get; set; }
    }
    /// <summary>
    /// 修改创伤病历（PC）
    /// </summary>
    public class SetCaseHistory: CaseHistoryViewModel
    {
        public List<DiagnosticPathContent> ContentList { get; set; }
    }


    public partial class DiagnosticPathContent
    {
        public int ID { get; set; }
        public Nullable<int> DiagnosticPathId { get; set; }
        public int ControlId { get; set; }
        public string ControlContent { get; set; }
    }

    public partial class DiagnosticPathTemplate
    {
        public int ID { get; set; }
        public int DiagnosticPathId { get; set; }
        public string ControlTitle { get; set; }
        public int ControlId { get; set; }
        public string ControlName { get; set; }
        public string ControlDescribe { get; set; }
    }
}